/**
 * 
 */
package com.feizhi.common.upload;

import java.io.File;

/**
 * @author shuaqiu 2013年11月19日
 *
 */
public final class UploadTmpFileUtil {

	private static final String TMP_DIR = System.getProperty("java.io.tmpdir");

	public static String getTmpDir() {
		return TMP_DIR;
	}

	public static File getTmpFile(String relativeUri) {
		File tmpFile = new File(TMP_DIR, relativeUri);
		return tmpFile;
	}

	public static String getRelativeUri(File tmpFile) {
		return UploadFileUtil.getRelativeUri(TMP_DIR, tmpFile);
	}

}
